package router

import (
	"lnzw/engine/http"
	"lnzw/server/urlsvr/controller"
)

func SetupRouter(server *http.HttpServer) {
	urlGroup := server.RegisterNewGroup("/url/server")
	//当前group需要跨域
	urlGroup.Use(http.Cors(), http.JsonHeaderCheck(), http.VersionCheck())
	urlGroup.POST("/gate", controller.Gate)
}
